package com.zwps.biz.api.model.vo.dict;

import com.zwps.common.tool.tree.Trees;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author shanwen
 * @description:
 * @date 2023-09-05
 * @ClassName DictTreeVO
 */
@Schema(description = "树")
@Getter
@Setter
public class DictTreeVO extends Trees<String, Void, DictTreeVO> {


    @Schema(description = "字典名称")
    private String dictName;


    @Schema(description = "字典编码")
    private String dictCode;


    @Schema(description = "树编码")
    private String treeCode;


    @Schema(description = "上级id")
    private String parentId;


    @Schema(description = "字典排序")
    private Integer displaySort;


    @Schema(description = "字典类型（1：系统|2：自定义）")
    private Integer dictType;

    @Schema(description = "子集")
    private List<DictTreeVO> children;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    @Schema(description = "创建用户")
    private String createBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改用户")
    private String updateBy;
}
